package features.advance.edu.compilers.chapt2;

import features.advance.edu.compilers.front.lexer.Token;

import java.io.IOException;

/**
 * 
 * @author LIN
 * @date 2022-01-12 13:28
 */public class Exercise2_6 {

    public static void main(String[] args) {
        Solution solution = new Solution() {
        };
        try{
            char read = '\n';

            while('\n' != (read = (char) System.in.read())){
                System.out.print(read);
            }
            System.out.println();
        }catch(Exception e){
            e.printStackTrace();
        }



    }
    
    static class Solution {
        char peek = '\n';
        int line = 0;
        public Token scan() throws IOException {
            for (; ;readch()) {
                if(peek == ' ' || peek == '\t'){
                    continue;
                }else if(peek == '\n'){
                    line = line + 1;
                }else{
                    break;
                }
            }
            // handle comment
            return null;
        }

        void readch() throws IOException {
            peek = (char) System.in.read();
        }
    }}
